package guoan.service;

import guoan.core.dto.DataGridModel;
import guoan.core.dto.PageResponse;
import guoan.domain.SysConfig;
import guoan.repository.SysConfigRepository;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysConfigService extends PageSerivce<SysConfig> {
	protected final Logger log = LoggerFactory.getLogger(getClass());

	@Autowired
	private SysConfigRepository sysConfigRepository;

	public PageResponse<SysConfig> page(DataGridModel dataGridModel) {
		// TODO Auto-generated method stub
		return super.pageResponse(sysConfigRepository, dataGridModel);
	}

	public SysConfig findOne(Long id) {
		return sysConfigRepository.findOne(id);
	}

	public SysConfig save(SysConfig sysConfig) {
		return sysConfigRepository.save(sysConfig);
	}

}
